<template>
	<view class="layout">
		<view class="search" @click="handleSearch">
			<u-icon name="search" color="#EC6149" size="31"></u-icon>
			<view class="search-title"> {{ res.list[0].title }}</view>
		</view>
	</view>
</template>
<script>
	export default {
		title: "搜索栏",
		props: ["res"],
		methods: {
			handleSearch() {
				uni.navigateTo({
					url: "/pages/navigation/search/searchPage",
				});
			},
		},
	};
</script>
<style lang="scss" scoped>
	@import "./tpl.scss";

	.search {
		height: 64rpx;
		border-radius: 60rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(164, 161, 161, 0.35);
		padding: 0 20rpx;
		font-size: 28rpx;

		.search-title {
			flex: 1;
			margin-left: 16rpx;
			color: #fff;
		}
	}

	.layout {
		background: transparent;
		padding: 0 16rpx;
	}
</style>
